﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace AIVision.Repository.Entitys
{
    public class PLCConfig
    {
        [Key]
        public int Id { get; set; }
        
        public string IP { get; set; }
        public float ZhuanTaiRunSpeed { get; set; }
        public float ZhuanTaiInitOffset { get; set; }
        public float ZhuanTaiStep { get; set; }

        public float PPURunSpeed { get; set; }
        public float PPURunPos1 { get; set; }
        public float PPURunPos2 { get; set; }
        public float PPURunPos3 { get; set; }
        public float PPURunPos4 { get; set; }

        public float TuLunRunSpeed { get; set; }
        public float TuLunStep { get; set; }

        public float FeiLiaoRunSpeed { get; set; }
        public float FeiLiaoRunPos1 { get; set; }
        public float FeiLiaoRunPos2 { get; set; }
        public float FeiLiaoRunPos3 { get; set; }

        public float ChaHeYRunSpeed { get; set; }
        public float ChaHeYZeroLocation { get; set; }
        public float ChaHeYFirstLocation { get; set; }
        public float ChaHeYLastLocation {get;set; }
        public float ChaHeYStep { get; set; }
        public float ChaHeYCount { get; set; }

        public float ChaHeXRunSpeed { get; set; }
        public float ChaHeXZeroLocation { get; set; }
        public float ChaHeXFirstLocation { get; set; }
        public float ChaHeXStep { get; set; }
        public float ChaHeXCount { get; set; }

        public int RunWaitTimeCount { get;set; }


        public int QuHe1Delay { get; set; }
        public int QuHe2Delay { get; set; }
        public int JiaHe1Delay { get; set; }
        public int JiaHe2Delay { get; set; }
        public int TuiHeUpDelay { get; set; }
        public int TuiHeOutDelay { get; set; }
        public int PPUFangDelay { get; set; }

        public int PPUQuDelay { get; set; }
        /// <summary>
        /// 转盘延时启动
        /// </summary>
        public int ZhuanStartDelay { get; set; }
        /// <summary>
        /// 转盘延时停止
        /// </summary>
        public int ZhuanStopDelay { get; set; }
        /// <summary>
        /// OK取料延时
        /// </summary>
        public int OKQuDelay { get; set; }
        /// <summary>
        /// NG取料延时
        /// </summary>
        public int NGQuDelay { get; set; }
        /// <summary>
        /// 插盒X上延时
        /// </summary>
        public int ChaHeXUpDelay { get; set; }
        /// <summary>
        /// 插盒X下延时
        /// </summary>
        public int ChaHeXDownDelay { get; set; }

        public int ZhuanTaiAccl { get; set; }
        public int ChanheYAccl { get; set; }
        public int ChanheXAccl { get; set; }

    }
}
